Crate vipers[][src]

Expand description

Library for writing safer Solana programs.

Modules

Various assertions.

Validations for accounts.

Macros

Asserts that the ATA is the one of the given owner/mint.

Asserts that two accounts share the same key.

Asserts that an account is owned by the given program.

Asserts that the given account matches the program id.

Require or return a [ProgramError], logging the string representation to the program log.

Returns the given error as a program error.

Tries to unwrap the Result, otherwise returns the error

Unwraps the result of a checked integer operation.

Ensures an Option can be unwrapped, otherwise returns the error

Enums

Functions

Validates a derived program address.

Type Definitions

Anchor generated Result to be used as the return type for the program.